﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class ListedCompanyMap : ClassMap<ListedCompany>
    {
        public ListedCompanyMap()
        {
            Table("LISTED_COMPANY");
            Id(x => x.ListedCompanyId, "LISTED_COMPANY_ID").GeneratedBy.Identity();
            Map(x => x.ListedCompanySymbol, "LISTED_COMPANY_SYMBOL");
            Map(x => x.ListedCompanyNameEn, "LISTED_COMPANY_NAME_EN");
            Map(x => x.ListedCompanyNameTh, "LISTED_COMPANY_NAME_TH");
            Map(x => x.ListedCompanyIndustryGroup, "LISTED_COMPANY_INDUSTRY_GROUP");
            Map(x => x.ListedCompanySector, "LISTED_COMPANY_SECTOR");
        }
    }
}
